package com.foreverwin.mes.production.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.foreverwin.mes.meapi.model.Certification;
import com.foreverwin.mes.production.model.StationCertification;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author syngna
 * @since 2018-11-29
 */
@Repository
public interface StationCertificationMapper extends BaseMapper<StationCertification> {


    /**
     * 根据岗位查询证明清单
     * @param stationBo 参数
     * @return List 返回值
     */
    List<Certification> selectCertificationsByStation(@Param("stationBo") String stationBo);


    /**
     * 删除岗位下维护的证明
     * @param stationBo
     * @return
     */
    int deleteCertificationByStation(@Param("stationBo") String stationBo);

    /**
     * 岗位添加证明
     * @param list
     * @return
     */
    int insertStationCertification(List<StationCertification> list);

}